using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace MMFrameworkDesign.Example
{
    public class GameStartPanel : MonoBehaviour
    {

        // Enemy的父节点
        public GameObject Enemies;
        // Start is called before the first frame update
        void Start()
        {
            transform.Find("BtnGameStart").GetComponent<Button>().onClick.AddListener(()=>
            {
                gameObject.SetActive(false);
                GameStartEvent.Trigger();
            });
        }

    }
}
